package top.infopub.mgr.cap.dao;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.infopub.dto.cap.ContractGuarantyDto;
import top.infopub.generic.GenericDao;
import top.infopub.mgr.cap.domain.ContractGuarantyDomain;
import top.infopub.mgr.cap.vo.ContractGuarantyVo;
import top.infopub.model.cap.ContractGuaranty;
import top.infopub.model.cap.FinancingName;

import java.util.List;

@Repository
public interface ContractGuarantyDao  extends GenericDao<ContractGuaranty, String> {

    /**
     * 根据条件查询保证合同列表
     * @param contractGuarantyVo
     * @return
     * @see
     */
    Page<ContractGuarantyDomain> selectByDomainWhere(ContractGuarantyVo contractGuarantyVo);

    /**
     *
     * @param id
     * @return
     */
    ContractGuarantyDto queryDetailById(@Param("id") String id);

    /*新增中查询合同名称下拉框列表*/
    List<FinancingName> queryListFinancingName();
    /*新增中查询金融机构下拉框列表*/
    List<ContractGuaranty> selectInstitutions(@Param("proCode") String proCode);
}
